package cn.changein.framework.config;

import cn.changein.framework.core.properties.BeetlProperties;
import cn.changein.framework.core.properties.SystemProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 项目中的配置
 * 

 * @date: 2020-02-20
 * @copyright: 广州澄境科技有限公司
 */
@Configuration
public class PropertiesConfig {

    /**
     * beetl模板的配置
     *
     */
    @Bean
    @ConfigurationProperties(prefix = BeetlProperties.BEETLCONF_PREFIX)
    public BeetlProperties beetlProperties() {
        return new BeetlProperties();
    }

    /**
     * 系统的属性配置
     *
     */
    @Bean
    @ConfigurationProperties(prefix = SystemProperties.PREFIX)
    public SystemProperties systemProperties() {
        return new SystemProperties();
    }
    
}
